package Models;

public class Supplies {
	private int supplyID;
	private String supplyName;
	private double supplySpokenFor;
	private double supplyOnHand;
	private int supplyWearhouseID;
	private double supplyPrice;
	private double supplyQtyPerCost;
	private String supplyUnits;
	private String supplyNumber;
	private double supplyOnOrder;
	private double minimumQty;
	private String supplyNotes;
	private int leadTime;
	private boolean resaleable;
	private double resalePrice;
	private double wholesalePrice;
	private boolean taxExempt;
	private StockCode stockCode;
	private int version;
	private double attrition;

	public int getSupplyID(){
	    return supplyID;
	}
	
	public void setSupplyID(final int id){
	    this.supplyID = id;
	}
	
	public String getSupplyName(){
	    return supplyName;
	}
	
	public void setSupplyName(final String name){
	    this.supplyName = name;
	}
	
	public double getSpokenFor(){
	    return supplySpokenFor;
	}
	
	public void setSpokenFor(final double lbs){
	    this.supplySpokenFor = lbs;
	}
	
	public double getOnHand(){
	    return supplyOnHand;
	}
	
	public void setOnHand(final double lbs){
	    this.supplyOnHand = lbs;
	}
	
	public int getWearhouseID(){
	    return supplyWearhouseID;
	}
	
	public void setWearhouseID(final int id){
	    this.supplyWearhouseID = id;
	}
	
	public double getSupplyPrice(){
	    return supplyPrice;
	}
	
	public void setSupplyPrice(final double cost){
	    this.supplyPrice = cost;
	}
	
	public double getSupplyQtyPerCost(){
	    return supplyQtyPerCost;
	}
	
	public void setSupplyQtyPerCost(final double qty){
	    this.supplyQtyPerCost = qty;
	}
	
	public String getSupplyUnits(){
	    return supplyUnits;
	}
	
	public void setSupplyUnits(final String units){
	    this.supplyUnits = units;
	}
	
	public String getSupplyNumber(){
	    return supplyNumber;
	}
	
	public void setSupplyNumber(final String number){
	    this.supplyNumber = number;
	}
	
	public double getSupplyOnOrder(){
	    return this.supplyOnOrder;
	}
	
	public void setSupplyOnOrder(final double qty){
	    this.supplyOnOrder = qty;
	}
	
	public double getMinQty(){
	    return this.minimumQty;
	}
	
	public void setMinQty(final double qty){
	    this.minimumQty = qty;
	}
	
	public String getSupplyNotes(){
	    return this.supplyNotes;
	}
	
	public void setSupplyNotes(final String notes){
	    this.supplyNotes = notes;
	}
	
	public String getDisplay(){
	    return this.supplyName + " - " + Integer.toString(supplyID);
	}
	
	public int getLeadTime(){
	    return leadTime;
	}
	
	public void setLeadTime(final int id){
	    this.leadTime = id;
	}
	
	public boolean isResaleable() {
	    return resaleable;
	}
	
	public void setResaleable(boolean resaleable) {
	    this.resaleable = resaleable;
	}
	
	public double getResalePrice() {
	    return resalePrice;
	}
	
	public void setResalePrice(double resalePrice) {
	    this.resalePrice = resalePrice;
	}
	
	public double getWholesalePrice() {
	    return wholesalePrice;
	}
	
	public void setWholesalePrice(double wholesalePrice) {
	    this.wholesalePrice = wholesalePrice;
	}
	
	public boolean isTaxExempt() {
		return taxExempt;
	}
	
	public void setTaxExempt(boolean taxExempt) {
		this.taxExempt = taxExempt;
	}
	
	public StockCode getStockCode() {
		return stockCode;
	}

	public void setStockCode(StockCode stockCode) {
		this.stockCode = stockCode;
	}
	
    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

	public double getAttrition() {
		return attrition;
	}

	public void setAttrition(double attrition) {
		this.attrition = attrition;
	}
    
	public double getPOLineItemPrice(){
	    return (this.getSupplyPrice() * this.getSupplyQtyPerCost());
	}
}
